package com.test.java.effectiveJava;

public class java06 {

    public static void main(String[] args) {
        long bng=System.currentTimeMillis();
        long sum=0L;
        for (long i = 0; i < Integer.MAX_VALUE; i++) {
             sum+=i;
        }
        long end=System.currentTimeMillis();
        System.out.println("耗时："+(end-bng));
        System.out.println(sum);
    }
}
